<?php echo template('admin/header');echo template('admin/sider');?>
<div class="layui-body">
	<div class="childrenBody childrenBody_show">
		<blockquote class="layui-elem-quote a-e-quote">
				<div class="layui-inline">添加</div>
				<div class="layui-inline f-right"><?php echo admin_btn($index_url, '', 'layui-btn-xs','','返回')?></div>
		</blockquote>
		<form class="layui-form a-e-form" method="post">
			<div class="layui-form-item">
				<label class="layui-form-label">变量</label>
				<div class="layui-input-block">
					<input type="text" name="data[cname]" value="<?php echo $item['cname'];?>" class="layui-input" placeholder="变量名" required>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">变量值</label>
				<div class="layui-input-block">
					<textarea name="data[val]" class="layui-textarea" required><?php echo $item['val'];?></textarea>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">说明</label>
				<div class="layui-input-block">
					<textarea class="layui-textarea" name="data[bak]" max-length="100" ><?php echo $item['bak'];?></textarea>
				</div>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block">
					<input type="hidden" name="id" value="<?php echo $item['id'];?>"> 
					<?php echo admin_btn($edit_url,'save','layui-btn-lg',"lay-filter='sub' location='$index_url'")?>
				</div>
			</div>
		</form>
	</div>
</div>
<?php echo template('admin/script');?>
<?php echo template('admin/footer');?>
